package com.sykj.util.reponse;

import lombok.Getter;

/**
 * @program: BeautyClub
 * @description: 响应数据基类
 * @author: qiaoli
 * @create: 2020-07-15 09:14
 */
@Getter
public class BaseResponse {
    /**
     * 状态码
     */
    private Integer code;

    /**
     * 响应消息
     */
    private String msg;

    protected BaseResponse() {}
/**
 * 功能描述: 响应数据
 * @Param: [code]
 * @Return: BaseResponse
 * @Author: Feiwo Sicun
 * @Date: 2020/7/15 9:18
 */    protected BaseResponse(CodeEnum code) {
        this.code = code.getCode();
        this.msg = code.getMsg();
    }

}
